package group2assignone.ucm.customer;

import group2assignone.ucm.UCController;
import group2assignone.view.MainView;
import group2assignone.view.OurView;

/**
 * Takes a customer back to the main view when purchasing a flight.
 * This is for when a customer is not logged in.
 * @author group2
 */
public class UCCancelGuest implements UCController {

    private OurView view;

    public UCCancelGuest(OurView view) {
        this.view = view;
    }

    /**
     * Use Case: Cancel
     * 1. system exits current view
     * 2. system updates gui to the main welcome view
     */
    public void run() {
        MainView gui = new MainView();
        gui.go();
        view.dispose();
    }
}
